package top.wardyan.wdev.dbdevassist.action.base;

import top.wardyan.base.util.DateUtil;
import top.wardyan.wdev.dbdevassist.config.DDA;
import top.wardyan.wdev.dbdevassist.model.YTObjectCol;
import top.wardyan.wdev.dbdevassist.model.YTObjectPara;
import top.wardyan.wdev.dbdevassist.service.IDetailService;

public class ColEditShell extends ParaEditShell<ColEditShell, YTObjectCol>{
	
	public ColEditShell(int mID, int dID, IDetailService<YTObjectCol> detailService) {
		super(mID, dID, detailService);
		this.createContent();
	}
	
	private void createContent() {
		
	}
	

	@Override
	protected boolean save() {
		if(this.model == null || this.dID <= 0) {
			this.model = new YTObjectCol().setMID(this.mID)
					.setDID(detailService.genDID(this.mID))
					.setRAuthorID(dda.user.getSID())
					;
		}
		model.setXType(0).setXTableName("");
		return super.save();
	}

}
